package com.zhilianbao.leyaogo.ui.adapter.home.magic;

import com.zhilianbao.leyaogo.model.response.home.BaseDataBean;
import com.zhilianbao.leyaogo.model.response.home.BaseHomeData;

import java.io.Serializable;
import java.util.List;

/**
 * 首页魔方 Model
 */
public class HomeAppMagic extends BaseHomeData {


    /**
     * data : {"type":4,"list":[{"id":34,"name":"酒水饮料","type":1,"img":"2c3e920f955de6abaae58f126e3c15c5.jpg","tid":1,"x":0,"y":0,"w":3,"h":2},{"id":44,"name":"新品特卖","type":2,"img":"0db173abf1f4cd03212505b82fb6aa26.jpg","tid":1,"x":0,"y":2,"w":4,"h":2}]}
     */

    private HomeAppMagicData data;

    public HomeAppMagicData getData() {
        return data;
    }

    public void setData(HomeAppMagicData data) {
        this.data = data;
    }

    public static class HomeAppMagicData implements Serializable {
        /**
         * type : 4
         * list : [{"id":34,"name":"酒水饮料","type":1,"img":"2c3e920f955de6abaae58f126e3c15c5.jpg","tid":1,"x":0,"y":0,"w":3,"h":2},{"id":44,"name":"新品特卖","type":2,"img":"0db173abf1f4cd03212505b82fb6aa26.jpg","tid":1,"x":0,"y":2,"w":4,"h":2}]
         */

        private int type;
        private List<HomeAppMagicBean> list;

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public List<HomeAppMagicBean> getList() {
            return list;
        }

        public void setList(List<HomeAppMagicBean> list) {
            this.list = list;
        }

        public static class HomeAppMagicBean extends BaseDataBean {
            /**
             * img : 2c3e920f955de6abaae58f126e3c15c5.jpg
             * tid : 1
             * x : 0
             * y : 0
             * w : 3
             * h : 2
             */
            private String img;
            private int tid;
            private int x;
            private int y;
            private int w;
            private int h;

            public String getImg() {
                return img;
            }

            public void setImg(String img) {
                this.img = img;
            }

            public int getTid() {
                return tid;
            }

            public void setTid(int tid) {
                this.tid = tid;
            }

            public int getX() {
                return x;
            }

            public void setX(int x) {
                this.x = x;
            }

            public int getY() {
                return y;
            }

            public void setY(int y) {
                this.y = y;
            }

            public int getW() {
                return w;
            }

            public void setW(int w) {
                this.w = w;
            }

            public int getH() {
                return h;
            }

            public void setH(int h) {
                this.h = h;
            }
        }
    }
}